﻿using System;

namespace Zyg.SSO.Configuration
{
    public abstract class ParagraphConfigurationSectionBase : System.Configuration.ConfigurationSection
    {
    }

    public class ProvidersParagraphConfigurationSection : ParagraphConfigurationSectionBase
    {
        private const string DALProvidersItem = "dalProviders";

        [System.Configuration.ConfigurationProperty(DALProvidersItem, IsRequired = true)]
        public virtual DALProviderConfigurationElementCollection DALProviders
        {
            get
            {
                return base[DALProvidersItem] as DALProviderConfigurationElementCollection;
            }
        }
    }

    public class ServicesParagraphConfigurationSection : ParagraphConfigurationSectionBase
    {
        private const string AuthenticationServicesItem = "authenticationServices";

        [System.Configuration.ConfigurationProperty(AuthenticationServicesItem, IsRequired = true)]
        public virtual AuthenticationServiceConfigurationCollection AuthenticationServices
        {
            get
            {
                return base[AuthenticationServicesItem] as AuthenticationServiceConfigurationCollection;
            }
        }
    }
}
